import type { DataConnectionForm } from '../types';

export const dataSourceItems = {
  SQL: 'SQL',
  API: 'API',
  ElectronicScale: 'ELECTRON',
  FTP: 'FTP',
  FILE: 'FILE',
};

export enum API_STORE {
  yf = 'yf',
  td = 'td',
}
export const formData: DataConnectionForm = {
  type: '',
  ftp: {
    ip: '',
    port: '',
    username: '',
    password: '',
    filePath: '',
  },
  sql: {
    ip: '',
    port: '',
    sa: '',
    password: '',
    dataBase: '',
    dataBaseName: '',
  },
  api: {
    appKey: '',
    appSecret: '',
    port: 0,
    storeId: '',
    shopAdminId: '',
    password: '',
    secret: '',
    user: '',
  },
  filed: [],
  store: {
    sunlux: '',
    password: '',
    username: '',
  },
  cashierPlatform: '',
  electronicScaleBrand: '',
  filePath: '',
};
